{include file="public/header" /}
<body>
    <fieldset class="layui-elem-field layui-field-title">
        <legend>基本档案</legend>
    </fieldset>
    <form class="layui-form" action="">
        <div class="layui-form-item">
            <label class="layui-form-label">企业名称</label>
            <div class="layui-input-block">
                <input type="text" name="CompName" class="layui-input" lay-verify="required" placeholder="请输入企业名称" value="{$view.comp_name}" >
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">主体类型</label>
            <div class="layui-input-block">
                <input type="radio" name="CompType" value="1" title="生产制造商" {eq name="$view.comp_type" value="1"}checked{/eq}>
				<input type="radio" name="CompType" value="2" title="品牌运营商" {eq name="$view.comp_type" value="1"}checked{/eq}>
				<input type="radio" name="CompType" value="3" title="渠道经销商" {eq name="$view.comp_type" value="1"}checked{/eq}>
            </div>
        </div>
		<div class="layui-form-item">
            <label class="layui-form-label">联系人</label>
            <div class="layui-input-block">
                <input type="text" name="ContactName" class="layui-input" lay-verify="required" placeholder="请输入联系人" value="{$view.contact_name}" >
            </div>
        </div>
		<div class="layui-form-item">
            <label class="layui-form-label">联系电话</label>
            <div class="layui-input-block">
               <input type="text" name="ContactMobile" class="layui-input" lay-verify="required" placeholder="请输入联系电话" value="{$view.contact_mobile}" >
            </div>
        </div>
		<div class="layui-form-item">
			<label class="layui-form-label">省/市/区</label>
			<div class="layui-input-inline">
				<select name="ProId" lay-filter="SelectPro" lay-search>
					<option value="">请选择省</option>
					{volist name="pro_list" id="p"}
						<option value="{$p.id}"  {eq name="$p.id" value="$view.pro_id"}selected{/eq}>{$p.name}</option>
					{/volist}
				</select>
			</div>
			<div class="layui-input-inline" id="CityList">
				<select name="CityId" lay-filter="SelectCity" lay-search>
					<option value="">请选择市</option>
					{volist name="cities_list" id="c"}
						<option value="{$c.id}"  {eq name="$c.id" value="$view.city_id"}selected{/eq}>{$c.name}</option>
					{/volist}
				</select>
			</div>
			<div class="layui-input-inline" id="DistrctList">
				<select name="DistrictId" lay-search>
					<option value="">请选择县/区</option>
					{volist name="distrinct" id="d"}
						<option value="{$d.id}"  {eq name="$d.id" value="$view.district_id"}selected{/eq}>{$d.name}</option>
					{/volist}
				</select>
			</div>
		</div>
		<div class="layui-form-item">
            <label class="layui-form-label">详细地址</label>
            <div class="layui-input-block">
                <input type="text" name="Address" lay-verify="title" autocomplete="off" placeholder="请输入详细地址" class="layui-input" value="{$view.address}" >
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <input type="hidden" name="supplier_id" class="" value="{$view.id}">
				<button class="layui-btn" lay-submit="" lay-filter="addSupplier">立即提交</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
    </form>
    <script src="{$PUBLIC_STATIC_SRC.__Home_JS__}/main.js"></script>
</body>
</html>